import java.util.Scanner;

public class demo12 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入当月利润");
        double lr=sc.nextDouble();
        double tc=0;

        if (lr<=10){
            tc = lr*0.1;
            System.out.println("应发奖金数为："+tc+"万元");
        }else if(lr>10 && lr <20){
            tc=(10*0.1)+(lr-10)*0.075;
            System.out.println("应发奖金数为："+tc+"万元");
        }else if(lr>=20 && lr <40){
            tc=(10*0.1)+(20-10)*0.075+(lr-20)*0.05;
            System.out.println("应发奖金数为："+tc+"万元");
        }else if(lr>=40 && lr <60){
            tc=(10*0.1)+(20-10)*0.075+(40-20)*0.05+(lr-60)*0.03;
            System.out.println("应发奖金数为："+tc+"万元");
        }else if(lr>=60 && lr <100){
            tc=(10*0.1)+(20-10)*0.075+(40-20)*0.05+(60-40)*0.03+(lr-60)*0.015;
            System.out.println("应发奖金数为："+tc+"万元");
        }else if(lr>100){
            tc=(10*0.1)+(20-10)*0.075+(40-20)*0.05+(60-40)*0.03+(100-60)*0.015+(lr-100)*0.01;
            System.out.println("应发奖金数为："+tc+"万元");
        }
    }
}
